// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_logon_failures
// * CreateDate    : 2014-06-05 18:29:59
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:59
// * LastChanger   : 2014-06-05 18:29:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmLogonFailuresEntity : EntityBase
    {
        public HmLogonFailuresTable TableSchema
        {
            get
            {
                return HmLogonFailuresTable.Current;
            }
		}
		
		public HmLogonFailuresEntity()
        {

        }
		
		public HmLogonFailuresEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Ipaddress1 = Convert.ToInt64(CommonFunctions.ToObject(dr["ipaddress1"]));
			this.Ipaddress2 = Convert.ToInt64(CommonFunctions.ToObject(dr["ipaddress2"]));
			this.Failuretime = Convert.ToDateTime(CommonFunctions.ToObject(dr["failuretime"]));
        }
		
		public HmLogonFailuresEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Ipaddress1 = Convert.ToInt64(CommonFunctions.ToObject(dr["ipaddress1"]));
			this.Ipaddress2 = Convert.ToInt64(CommonFunctions.ToObject(dr["ipaddress2"]));
			this.Failuretime = Convert.ToDateTime(CommonFunctions.ToObject(dr["failuretime"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmLogonFailuresTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public long Ipaddress1
        {
            get { return Convert.ToInt64(GetData(HmLogonFailuresTable.C_ipaddress1)); }
            set { SetData(HmLogonFailuresTable.C_ipaddress1, value); }
        }
		
        [DataMember]
        public long Ipaddress2
        {
            get { return Convert.ToInt64(GetData(HmLogonFailuresTable.C_ipaddress2)); }
            set { SetData(HmLogonFailuresTable.C_ipaddress2, value); }
        }
		
        [DataMember]
        public DateTime Failuretime
        {
            get { return Convert.ToDateTime(GetData(HmLogonFailuresTable.C_failuretime)); }
            set { SetData(HmLogonFailuresTable.C_failuretime, value); }
        }
		
		#endregion
	}
	
	
}	

